export interface IResponseBase {
  code: number
  message: string
  data: any
  ok: boolean
}
export interface loginParam {
  username: string
  password: string
}
export interface loginResonseData {
  code: number
  data: string
}

export interface IUserInfoResponse extends IResponseBase {
  code: number
  data: {
    userId: number
    avatar: string
    name: string
    password: string
    desc: string
    roles: string[]
    buttons: string[]
    routes: string[]
    token: string
  }
}

export interface IUserInfo {
  id?: number | string
  createTime?: string
  updateTime?: string
  username?: string
  name: string
  password?: string
  phone: string
  roleName: string
}
export interface IUserListResponse extends IResponseBase {
  data: {
    records: IUserInfo[]
    total: number
    size: number
    current: number
    pages: number
  }
}

export interface IAssignRole {
  id: string
  createTime: string
  updateTime: string
  roleName: string
  remark: any
}

export interface IAssignRoleResponse extends IResponseBase {
  data: {
    assignRoles: IAssignRole[]

    allRolesList: IAssignRole[]
  }
}
